﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PalFramework.Object;
using PalBattleEmulator.Object.Unit;

namespace PalBattleEmulator.Object
{
    public class EnemyTeam : Team
    {
        public EnemyTeam(int count, int arrayType, IEnemy[] units)
        {
            int arrayId = count * 10 + arrayType;
            array = ContextModules.EnemyArrayTmplManager.GetTmpl(arrayId);
            this.units = new List<IUnit>();
            for (int i = 0; i < units.Length; i++)
            {
                Enemy enemy = (Enemy)units[i];
                this.units.Add(enemy);
                enemy.JoinTeam(this, i);
            }
        }
    }
}
